//
//  MTDetailSkillCell.m
//  ShiShiBang
//
//  Created by 宋宝强 on 16/9/24.
//  Copyright © 2016年 motianjituan. All rights reserved.
//

#import "MTDetailSkillCell.h"
#import "MTDetailSkillItem.h"
@implementation MTDetailSkillCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    NSInteger count = 5;
    
//    self.selectionStyle = UITableViewCellSelectionStyleNone;
//    for (int i = 0; i < count; i++) {
//        UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
//        [self.contentView addSubview:btn];
//        btn.tag = i;
//    }
//    
//    NSArray *btnArray = @[btn1,btn3,];
//    int coloumn = 3;
//    CGFloat btnWH = 130;
//    CGFloat margin = (self.view.mt_width - coloumn * btnWH) / (coloumn + 1);
//    CGFloat x = 0;
//    CGFloat y = 0;
//    int curL = 0;
//    int curR = 0;
//    CGFloat oriY = MTScreenH * 0.5;
//    //遍历指定的数组
//    for (int i = 0; i < btnArray.count; i++) {
//        UIButton *btn = btnArray[i];
//        btn.tag = i;
//        curL = i % coloumn;
//        curR = i / coloumn;;
//        x = margin + (margin + btnWH) * curL;
//        y = oriY + (margin + btnWH) * curR;
//        btn.frame = CGRectMake(x, y, btnWH, btnWH);
//        [self.view addSubview:btn];
//               //监听按钮点击
//        [btn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
//    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (CGFloat)cellHeight {
    return 54;
}

- (void)setItem:(MTDetailSkillItem *)item {
    _item = item;
    
}

@end
